# -*- coding: utf-8 -*-
# @Time : 2020/11/26 5:55 下午
# @Author : Houor
# @Site : https://my.oschina.net/houor
# @File : simple1.py
# @Description:


import numpy as np
from matplotlib import pyplot as plt


def g1(x):
    return 90 - (9 * x) / 4


def g2(x):
    return 40 - (4 * x) / 5


def g3(x):
    return 30 - (3 * x) / 10


def g4(x):
    return 0 * x


def f(x):
    return -7 * x / 12


x = np.arange(0, 50, 1)
plt.title("Matplotlib")
plt.xlabel("x")
plt.ylabel("y")

plt.figure()
plt.plot(x, g1(x), color='red', linestyle='--')
plt.plot(x, g2(x), color='blue', linestyle='-.')
plt.plot(x, g3(x), color='green', linestyle=':')
plt.plot(x, g4(x))
plt.plot(x, np.zeros(50))
plt.plot(x, f(x))

plt.show()
